package com.mdd.common.mapper.article;

import com.mdd.common.core.basics.IBaseMapper;
import com.mdd.common.entity.article.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * 文章
 */
@Mapper
public interface ArticleMapper extends IBaseMapper<Article> {
    void updateDeleteByIdList(@Param("idlist") List<Integer> id,@Param("deleteTime") Long deleteTime);

    // 删除分类
    void updateCidDeleteByIdList(@Param("idlist") List<Integer> id,@Param("deleteTime") Long deleteTime);

    // 查询哪些分类下有数据
    List<String> getArticData(@Param("idlist") List<Integer> id);

}
